package com.ruoyi.game.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.game.api.domin.GameUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;


/**
 * 游戏用户
 *
 * @author : 小胖
 * @version : 0.0.1
 * @date : 2022/05/13  18:21
 **/
@FeignClient(contextId = "remoteGameUserService", value = ServiceNameConstants.SYSTEM_GAME)
public interface RemoteGameUserService
{
    /**
     * 初始化 游戏用户
     * @param gameUser  游戏用
     * @return  结果
     */
    @PostMapping("player/init")
    R<Boolean> init(@RequestBody GameUser gameUser, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
